From: Keir Fraser Date: Fri, 6 Mar 2009 18:55:05 +0000 (+0000) Subject: Panic rather than BUG if an error is encountered decompressing a bzImage X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13994^2~24 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=adfb6cc3c048f4580e4925fcbcf32ef2565972e4;p=xen.git Panic rather than BUG if an error is encountered decompressing a bzImage This gives a more useful error message without an unnecessary stack dump. Noticed by Jeremy Fitzhardinge. Signed-off-by: Ian Campbell --- diff --git a/xen/arch/x86/bzimage.c b/xen/arch/x86/bzimage.c index 37bc78eec2..4843677916 100644 --- a/xen/arch/x86/bzimage.c +++ b/xen/arch/x86/bzimage.c @@ -58,8 +58,7 @@ static void flush_window(void); static __init void error(char *x) { - printk("%s\n", x); - BUG(); + panic("%s\n", x); } static __init int fill_inbuf(void)